<template>
    <div class="tz-input" @click='nav' :style='cssStyle'>{{title}}</div>
</template>

<script>
export default {
  data: function () {
    return {};
  },
  methods: {
    // 跳转
    nav () {
      this.$router.push({
        path: this.url,
        query: this.params
      });
    }
  },
  props: {
    title: String,
    params: Object,
    url: String,
    cssStyle: String
  }
};
</script>

<style lang="stylus" scoped>
</style>
